package cn.com.stary1993.kite.captcha.support;

import cloud.tianai.captcha.common.exception.ImageCaptchaException;
import lombok.Getter;
import lombok.Setter;

/**
 * 验证码验证失败异常
 *
 * @author stary1993
 */
@Getter
@Setter
public class CaptchaValidException extends ImageCaptchaException {

    private String captchaType;

    private Integer code;

    public CaptchaValidException() {
    }

    public CaptchaValidException(String message) {
        super(message);
    }

    public CaptchaValidException(String captchaType, String message) {
        super(message);
        this.captchaType = captchaType;
    }

    public CaptchaValidException(String captchaType, Integer code, String message) {
        super(message);
        this.code = code;
        this.captchaType = captchaType;
    }

    public CaptchaValidException(String message, Throwable cause) {
        super(message, cause);
    }

    public CaptchaValidException(Throwable cause) {
        super(cause);
    }

    public CaptchaValidException(String message, Throwable cause, boolean enableSuppression,
                                 boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
